<%namespace YouHP.Model%>

<%template _Header%>

<div class="layout2-cols2">
	<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
          <div class="pannelbody">


	        <div class="content" style="overflow:hidden;">
	        <%if FriendDataList.Count==0%>
	 
	                <%csharp%>TempUrl = "/PatientAll.aspx";<%/csharp%>
	                <h1 style="text-align:center;">你还没有自己的病友，<a href="{this.GetUrl(TempUrl)}"><font class="quicklink">马上去寻找</font></a></h1>


	        <%else%>
            <form id="dataform" name="dataform" method="post">
	        
	        <div class="friendlist">
              <input type="hidden" name="fid" id="fid"/>
              <p>共<span>{DataCount}</span>个好友</p>
               <%csharp%>
    
               foreach(UserInfo item in FriendDataList)
               {

               <%/csharp%>
             <div>
              <table cellpadding="0" cellspacing="0" border="0">
              <tr>
               <td width="70px"  align="center">
                    <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.Id;<%/csharp%>
                     <a href="{this.GetUrl(TempUrl)}">
                        <img class="avatar" width="60" height="60" src="{item.Avatar}"/></a>
                     <p><a href="{this.GetUrl(TempUrl)}">{item.UserName}</a></p>
                     
               </td>
               
               <td valign="top">
               <p>年龄：{item.Age}</p><p>性别：{item.Gender}</p>
               <!--<p>地区：<%if item.Province!=""||item.City!=""%>{item.Province}&nbsp;{item.City}<%else%>未知<%/if%></p>-->

               <p><a href="javascript:if(window.confirm('确定删除该好友？')){ _$('fid').value={item.Id};_$('dataform').submit();}"><font color="Green">删除好友</font></a></p>
               </td>
               </tr>
               </table>
               </div>
              
 
               <%csharp%> } <%/csharp%>
       
	         </div>
	         
	       </form>
	         <%/if%>
	       </div>
	  
	  <style>
	  .friendlist
	  {
	  	overflow:hidden;
	  	margin-bottom:10px;
	  }

	  .friendlist span
	  {
        color:Green;
        font-weight:bold;
	  }
	  .friendlist div
	  {
	  	float:left;
	  	
	  	width:200px;
	  	height:110px;
	  	margin-bottom:5px;
	  }
	  </style>
	
	  <div class="clearBoth"></div>

		<div class="content">
				<div class="pages">
					{PagingString}
				</div>

		</div>  
 </div>
 </div>
 </div>
 </div>    
	    
</div>
<div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>	
<%template _footer%>